const mysql = require("mysql");

// 连接数据库
const db = mysql.createConnection({
  host: "localhost",
  user: "root",
  password: "123456",
  database: "catseven"
});
db.connect(err => {
  if (err) throw err;
  console.log("数据库连接成功");
});

module.exports = db;